import request from "@/lib/request";

const serviceName = '/institutional';

// 获取机构
export const getCompany=()=>{
	return request.GET({
		url:`${serviceName}/inner/company/list`
	})
}

// 获取轻陪机构列表
export const getCbhCompany=()=>{
	return request.GET({
		url:`${serviceName}/inner/cbh/company/list`
	})
}

// 根据机构编码获得机构
export const getCompanyDetail=(companyCode)=>{
	return request.GET({
		url:`${serviceName}/inner/company/code/${companyCode}`
	})
}

export const getCompanyList=()=>{
	return request.GET({
		url:`${serviceName}/openapi/company/active`
	})
}

// 查询医院列表
export const getHospital=(params)=>{
	return request.GET({
		url:`${serviceName}/inner/hospital/page`,
		data:params
	})
}
// 根据科室获取到医院科室列表
export const getHospitalDepartment= (params) => {
    return request.GET({
        url: `${serviceName}/inner/hospitalDepartment/page`,
        data: params
    })
}


// 获取医院类型的项目点(已开通轻陪服务)所对应的医院列表
export const getHospitalProjectPoint=(params)=>{
	return request.GET({
		url:`${serviceName}/inner/projectPoint/selectPPHospitalList`,
		data:params
	})
}

//根据项目点id获取医院科室列表
 export const getProjectPointDepartmentList=(params)=>{
 	return request.GET({
 		url:`${serviceName}/inner/projectPoint/getByIdHDepartmentList`,
 		data:params
 	})
 }
 
 // 获取客服电话
 export const getServiceTel=(id,params)=>{
 	return request.GET({
 		url:`${serviceName}/inner/projectPoint/serviceTel/${id}`,
 		data:params
 	})
 }

//  获取项目点详情
export const getprojectPointInfo=(id,params)=>{
	return request.GET({
		url:`${serviceName}/inner/projectPoint/${id}`,
		data:params
	})
}

// 长护险开展服务的机构列表
export const getLtCompanyList=(params)=>{
	return request.GET({
		url:`${serviceName}/inner/company/getLtCompanyList`,
		data:params
	})
}
